package com.gitee.dupe.file.storage;

import com.gitee.dupe.common.properties.DupeProperties;
import com.gitee.dupe.file.strategy.FileStrategy;
import com.gitee.dupe.file.strategy.impl.LocalFileStrategyImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * 本地上传配置
 *
 * @author LYH
 */

@Configuration
@Slf4j
public class LocalAutoConfigure {

    @Bean
    public FileStrategy getFileStrategy(DupeProperties dupeProperties) {
        return new LocalFileStrategyImpl(dupeProperties);
    }

}
